<?php

include_once '../model/music.php';
$model = new Music();

echo '<table>';
$data = $model->getData();
while ($row = $data->fetch_assoc()) {
    echo '  <tr>';
    echo '      <td>'.$row['artist'].'</td>';
    echo '      <td>'.$row['title'].'</td>';
    echo '  </tr>';
}
echo '</table>'
?>
